# This Makefile has been simplified as much as possible, by putting all
# generic material, independent of this specific directory, into
# ../Rules.make. Read that file for details
CROSS_COMPILE=arm-linux-
INCLUDEDIR=/home/fyb/8120/Embedded_Linux/source/arm-linux/arm-linux-2.4.19/include
#CROSS_COMPILE=
#INCLUDEDIR=/usr/src/linux/include

# This is useful if cross-compiling. Taken from kernel Makefile (CC changed)
AS      =$(CROSS_COMPILE)as
LD      =$(CROSS_COMPILE)ld
CC      =$(CROSS_COMPILE)gcc
CPP     =$(CC) -E
AR      =$(CROSS_COMPILE)ar
NM      =$(CROSS_COMPILE)nm
STRIP   =$(CROSS_COMPILE)strip
OBJCOPY =$(CROSS_COMPILE)objcopy
OBJDUMP =$(CROSS_COMPILE)objdump

CFLAGS +=  -Wall -D__KERNEL__ -DMODULE -I$(INCLUDEDIR) -mcpu=arm9

CFLAGS += -O -I..

DEBUG = y

ifeq ($(DEBUG),y) 
	DEBFLAGS = -DDEBUG 
else 
	DEBFLAGS =  
endif

CFLAGS += $(DEBFLAGS)

OBJS = dumpdriver.o

all: $(OBJS)

clean:
	rm -f *.o *~ core
